package com.gr.service;

import com.gr.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("user")//这里是服务名不是项目名
public interface FeignService {
    @GetMapping("/user-module/user/selectOne/{id}")
    public User selectOne(@PathVariable("id")int id);
}
